package com.softserveinc.interactive_board.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "user_type")
public class UserType {
	
	@Id
	@Column(name = "user_type_id")
	private Integer id;

	@Column(name = "user_type", length=25)
	public String type;

	public UserType(int id, String type) {
		this.id = new Integer(id);
		this.type = type;
	}
	
	public UserType(Integer id) {
		this(id, "type");
	}

	public UserType() {
		this(2, "student");
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}

}
